package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-02-21
 */
public class GoodsSn extends Model<GoodsSn> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 仓库id
     */
    private String houseId;

    /**
     * 序列号
     */
    private String sn;

    /**
     * 备注
     */
    private String remark;

    /**
     * 1未出库 2出库
     */
    private Integer status;

    /**
     * 入库日期
     */
    private Date inDate;

    /**
     * 出库日期
     */
    private Date outDate;

    /**
     * 时间
     */
    private Date time;

    /**
     * 所属公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Date getInDate() {
        return inDate;
    }

    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }
    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsSn{" +
            "id=" + id +
            ", goodsId=" + goodsId +
            ", houseId=" + houseId +
            ", sn=" + sn +
            ", remark=" + remark +
            ", status=" + status +
            ", inDate=" + inDate +
            ", outDate=" + outDate +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
